#include "http.hpp"
int main()
{
    // 大文件传输处理
    std::unique_ptr<Socket> client(new Socket);
    std::string head = "put /1234.txt HTTP/1.1\r\nConnection: close\r\n";
    std::string body;
    Util::ReadFile("./hello.txt",body);
    head+="Content-Length: "+std::to_string(body.size());
    head+="\r\n\r\n";
    client->CreateClient(8888, "127.0.0.1");
    client->Send(head.c_str(), head.size());
    client->Send(body.c_str(), body.size());
    client->Close();
}